/* hero */
.hero {
  height: calc(100vh - 60px);
  width: 100vw;
  max-width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 8fr 11fr;
  align-items: center;
  position: relative;
  /* background: url("/img/hero_main.svg") no-repeat right; */
  /* background-size: 60vw; */
  letter-spacing: 0.04em;
  padding: 0;
}

.bloghome__intro {
  padding: 1em;
  padding-left: 4em;
  position: relative;
  z-index: 10;
  font-weight: bold;
}

.bloghome__intro .hero_text {
  font-size: calc(1.8em + 1.2vw);
  /* font-weight: 600; */
}

.bloghome__intro > p {
  margin: 26px 0 24px;
  color: hsl(215deg 19% 48%);
  /* text-shadow: 0 0 #8c99ab; */
  font-size: 1.125rem;
  text-align: justify;
  letter-spacing: -0.01em;
  line-height: 32px;
  font-weight: normal;
}

.bloghome__intro > p:nth-child(3) {
  align-self: start;
  margin-top: 0;
}

html[data-theme='dark'] .bloghome__intro > p {
  color: #dfdfdf;
}

.intro__name {
  color: var(--ifm-color-primary);
}

.bloghome__image {
  overflow: hidden;
  width: 100%;
  z-index: 5;
  align-items: center;
  justify-items: center;
}

.bloghome__image svg {
  width: 100%;
  height: auto;
}

:global(.hero_main_svg__js) g,
:global(.hero_main_svg__todo) path:nth-child(1),
:global(.hero_main_svg__magnifier) path:nth-child(1) {
  fill: #2a2b3b;
}

[data-theme='dark'] :global(.hero_main_svg__js) g,
[data-theme='dark'] :global(.hero_main_svg__todo) path:nth-child(1),
[data-theme='dark'] :global(.hero_main_svg__magnifier) path:nth-child(1) {
  fill: #abaff1;
}

.bloghome__scroll-down {
  justify-self: center;
  align-self: end;
  grid-column: span 2;
  position: absolute;
  bottom: 8em;
  background: linear-gradient(25deg, #1081ff, #72e1f6, #b185ff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 6px;
  cursor: pointer;
}

.bloghome__scroll-down button {
  border: none;
  width: 150px;
  height: 48px;
  background: white;
  border-radius: 4px;
  cursor: pointer;
}

.bloghome__scroll-down button svg {
  stroke: #7f7f7f;
}

.social__links {
  width: 100%;
  display: flex;
  max-width: 300px;
  align-items: center;
  justify-content: space-between;
  padding: 0.5em 0;
  z-index: 100;
  position: relative;
}

.social__links a {
  display: inline-flex;
  border: none;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
  transition: all 0.3s ease-in-out;
  transition-property: all;
  transition-duration: 0.3s;
  transition-delay: 0s;
}

.social__links a:hover {
  background-color: rgb(0 120 231 / 10%);
}

.social__links > *,
.social__links svg,
.social__links svg path {
  width: 24px;
  height: 24px;
  color: var(--ifm-color-primary);
  fill: var(--ifm-color-primary);
}

.social__links .dropdown {
  display: flex;
  align-items: center;
}

.social__links .dropdown span {
  margin-left: 6px;
  /* font-weight: 700; */
  font-size: 0.9em;
}

.social__links .dropdown__menu {
  max-width: initial;
  right: 0;
  top: 120%;
}

.intro {
  display: inline-block;
  color: white;
  padding: 0.75em 20px;
  margin-top: 1rem;
  margin-left: -2px;
  font-weight: 600;
  background: linear-gradient(
    90deg,
    var(--ifm-color-primary) 11.3%,
    var(--ifm-color-primary-light) 161.54%
  );
  box-shadow: rgb(0 105 165 / 35%) 0 0 32px;
  border-radius: 7px;
  font-family: 'Yuanti SC', Youyuan, 'You Yuan', '幼圆', 'PingFang SC',
    'Microsoft Yahei', Helvetica, sans-serif;

  &:hover {
    text-decoration: none;
    color: white;
  }

  // &::before {
  //   background: var(--ifm-color-primary);
  //   opacity: 0;
  //   content: "";
  //   display: block;
  //   height: 105%;
  //   width: 0;
  //   left: 0;
  //   position: absolute;
  //   top: 50%;
  //   transform: translateY(-50%);
  //   transition: all 0.5s ease-in-out;
  // }

  // &:hover::before {
  //   background: var(--ifm-color-primary-light);
  //   width: 100%;
  //   opacity: 0.5;
  // }

  > svg {
    transition: all 0.3s ease-in-out;
    margin-left: 0.25rem;
  }

  &:hover svg {
    transform: translateX(0.5rem);
  }
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: max-content minmax(0, max-content);
    align-items: start;
    height: auto;
    /* background-position: center bottom;
        background-size: 70vh; */
  }

  .bloghome__intro {
    padding: 0 var(--ifm-spacing-horizontal);
    padding-top: 4em;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .bloghome__image {
    width: 100%;
    justify-self: center;
    padding-top: 4em;
    height: 100%;
    display: grid;
    place-items: center;
  }

  .bloghome__image svg {
    width: 90%;
    height: auto;
  }
}

@media (max-width: 570px) {
  .hero {
    height: auto;
  }

  .bloghome__image {
    padding-top: 2em;
  }

  .bloghome__image svg {
    width: 100%;
    height: auto;
    padding-left: 12px;
  }

  .bloghome__intro {
    padding-top: 2em;
  }
}

:global(.hero_main_svg__js_rotate) {
  animation: rotating 4s ease-in-out infinite;
  transform-origin: center center;
  transform-box: fill-box;
}

@keyframes rotating {
  from {
    transform: rotateY(0deg);
  }

  50% {
    transform: rotateY(360deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}
/* 首页底部的小箭头 */
.arrowDownBtnWrapper {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  /* 布局测试 */
  min-width:100%;
  max-width: 100%
  
}

.arrowDownBtnWrapper svg {
  width: 3%;
  height: auto;
/*手机上的大小*/
  min-width:3%;
  max-width: 15%
}

.arrowDownBtn {
  color: #12affa;
  height: 3px;
  width: 3px;
  transition: 0.4s ease;
  -webkit-transition: 0.4s ease;
  -moz-transition: 0.4s ease;
  -o-transition: 0.4s ease;
  -ms-transition: 0.4s ease;
  animation: float 2s linear infinite;
  -webkit-animation: float 2s linear infinite;
  vertical-align: center;
}

.arrowDownBtn:hover {
  cursor: pointer;
  color: #04a8f4;
}

.arrowDownBtn:hover {
  cursor: pointer;
  color: darkgrey;
}

@keyframes float {
  0% {
    transform: translate(0px, 0px);
  }
  50% {
    transform: translate(0px, -10px);
  }
  100% {
    transform: translate(0px, 0px);
  }
}

@-webkit-keyframes float {
  0% {
    transform: translate(0px, 0px);
  }
  50% {
    transform: translate(0px, -10px);
  }
  100% {
    transform: translate(0px, 0px);
  }
}

/*******************************/
/** 在移动设备上，缩小 padding */
@media screen and (max-width: 996px){
  .button_social2 {
    width: 100px;
    height: 40px;
    padding: 0.7em 1em;
    border-radius: 10px;
    border: none;
    transition: all 0.5s ease-in-out;
    font-family: inherit, Verdana, Geneva, Tahoma, sans-serif;
    font-size: 14px;
    display: flex;
    align-items: center;
    background: royalblue;
    color: #f5f5f5;
  
    display: flex;
    position: relative;
  
    cursor:pointer;
  }
  
  .button_social2:hover {
    box-shadow: 0 0 20px 0px #2e2e2e3a;
  }
  
  .button_social2 .icon {
    position: absolute;
    height: 25px;
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
  }
  
  .button_social2 .text {
    transform: translateX(30px);
    transition: all 0.3s;
    margin: 0 0.5em 0 0.35em;
  }
  
  .button_social2:hover .icon {
    width: 75px;
  }
  
  .button_social2:hover .text {
    transition: all 0.3s;
    opacity: 0;
  }
  
  .button_social2:focus {
    outline: none;
  }
  
  .button_social2:active .icon {
    transform: scale(0.25);
  }
}
